import axios from '../utils/request.js'

export function getUsers(data) {
  return axios({
    url: '/getUsers',
    method: 'get',
    params: data,
  })
}
export function login(data) {
  return axios({
    url: '/login',
    method: 'post',
    data,
  })
}
export function register(data) {
  return axios({
    url: '/register',
    method: 'post',
    data,
  })
}

export function getUserInfo(data) {
  return axios({
    url: '/getUserInfo',
    method: 'get',
    params: data,
  })
}
